#!/bin/bash
#
host="$1"
user="$2"
password="$3"

echo "create database first..."
myql -h"$host" -u"$user" -p"$password" -e "create database mc_renderment;"

echo "init tables schema"
mysql -h"$host" -u"$user" -p"$password" mc_renderment < ./mc_renderment_structure.sql
echo "init admin acount"

myql -h"$host" -u"$user" -p"$password"  < ./init_data/*.sql
